package homework;

public class Sort1 {
	public static void main(String[] args) {
		 int[] array = { 9,7,3,2,5,6};
		 
		 for (int j = 0; j < array.length-1; j++) {
			for (int i = 0; i < array.length - 1; i++) {
				if (array[i] > array[i + 1]) {
					int t = array[i];
					array[i] = array[i + 1];
					array[i + 1] = t;
				}
			} 
		}
		 
		for (int i : array) {
			System.out.println(i);
		}
	}
}
